<#assign className = table.className>
<#assign classNameFirstLower = table.classNameFirstLower>
package ${basepackage}.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import ${basepackage}.mapper.${className}Mapper;
import ${basepackage}.model.${className}Entity;

import com.zy.ems.common.base.BaseDao;

@Repository
public class ${className}Dao extends BaseDao<${className}Entity, ${table.pkColumn.simpleJavaType}> {

    @Autowired
    private ${className}Mapper ${classNameFirstLower}Mapper;

    @Override
    @SuppressWarnings("unchecked")
    public ${className}Mapper getMapper() {
        return this.${classNameFirstLower}Mapper;
    }

    @Override
    protected String getNamespace() {
        return ${className}Mapper.class.getName();
    }

}
